// 在这里覆盖浏览器默认样式和ant-mobile默认样式
// 浏览器默认样式
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: PingFang-SC-Regular, Lato, Helvetica Neue, Arial, Verdana, Tahoma,
    Lucida Sans, FreeSans, Lucida Sans Unicode, Luxi Sans, sans-serif;
  font-size: 34px;
  color: #191f25;
  letter-spacing: 0;
  line-height: 0.5rem;
  text-align: center;
  -webkit-overflow-scrolling: touch;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

::-webkit-scrollbar {
  display: none;
}

@blue :#3296FA;

// 覆盖action-sheet
.am-action-sheet-button-list {
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 20px;

  & .am-action-sheet-button-list-item {
    color: @blue !important;
    margin: 0 20px;
    background-color: #fff;
    border-radius: 20px;
  }
  & .am-action-sheet-cancel-button {
    &-mask {
      width: 0 !important;
      height: 0 !important;
    }
    color: @blue !important;
    margin: 0 20px;
    background-color: #fff;
    border-radius: 20px;
  }
  .am-action-sheet-destructive-button {
    margin-top: 10px;
  }
}

.mt20 {
  margin-top: 20px !important;
}

.mb20 {
  margin-bottom: 20px !important;
}

.mb30 {
  margin-bottom: 30px !important;
}

.pt24 {
  padding-left: 24px;
} // 覆盖 picker
.am-picker-popup-header {
  height: 80px;
}

.alignC {
  display: flex;
  align-items: center;
}

.am-input-label {
  color: #191f25 !important;
}
// 覆盖modal样式
// 后续antm2.x alert中如果增加platform 的option 考虑使用并删掉。
.am-modal-content {
  width: 540px !important;
  border-radius: 26px !important;
  background: rgba(246, 246, 246, 0.9);
  padding-top: 0 !important;
  .am-modal-header {
    padding: 40px 0 16px 0 !important;
    text-align: center;
  }
  & .am-modal-header .am-modal-title {
    text-align: center !important;
    font-size: 34px !important;
  }
  & .am-modal-body {
    color: #000 !important;
    padding: 0 35px 40px !important;
  }
  .am-modal-button-group-h,
  .am-modal-button {
    border-top: 1px solid #d9d9dd;
    .am-modal-button:first-child {
      border-right: 1px solid #d9d9dd;
    }
  }
}

// 覆盖button
#dingapp .am-button.am-button-disabled,
#dingapp .am-button-primary.am-button-disabled {
  opacity: 0.6;
  background-color: @blue;
  color: #fff;
}

.am-button-primary {
  background-color: @blue;
  border-color: @blue;
}

.am-button {
  border-radius: 6px !important;
}

.am-modal {
  width: 540px !important;
}

// 覆盖List
#dingapp .am-list-extra {
  color: #191f25;
  white-space: normal;
  font-size: 0.34rem;
}

#dingapp .preview-upload-layout .am-list-extra {
  color: rgb(136, 136, 136);
}

//覆盖am-list
#dingapp {
  .am-list-body {
    background-color: #f6f6f6 !important;
    border-top: none !important;
    &:after {
      border: none !important;
    }
    .am-list-item.am-list-item-middle {
      border-top: 1px solid #ededee;
      border-bottom: 1px solid #ededee;
      .am-list-content {
        .am-list-item.am-list-item-middle {
          border-top: none !important;
          .am-list-line {
            padding: 0;
          }
        }
      }
    }
    div:not(:last-child) .am-list-line:after {
      border: none !important;
    }
  }
}

.am-list-item {
  padding-left: 0 !important;
  .am-list-content {
    padding: 0 0 0 24px !important;
    .am-list-content {
      padding: 0 0 0 0 !important;
    }
  }
  .am-textarea-control textarea {
    padding-left: 21px !important;
  }
  .am-input-control input {
    color: #191f25 !important;
  }
}

//覆盖lg whitespace 30px->32px
.am-whitespace.am-whitespace-lg {
  height: 32px !important;
}

// 覆盖datePicker， 为了只显示日期，不显示时间
.renliwo-picker .renliwo-picker-item:nth-child(1) {
  display: none !important;
}

.renliwo-picker {
  display: flex;
  align-items: center;
}

.renliwo-picker-item {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  text-align: center;
}

.am-modal-button-group-h .am-modal-button:first-child {
  color: #108ee9 !important;
}
//覆盖step title
.step-title {
  .am-steps-item {
    margin-right: 0 !important;
    .am-steps-title {
      color: #191f25 !important;
      font-size: 24px !important;
      font-weight: normal !important;
    }
    .am-steps-head-inner {
      width: 30px !important;
      height: 30px !important;
    }
    .am-steps-icon {
      background: none !important;
      width: 16px !important;
      height: 16px !important;
      position: relative;
    }
    .dot-icon {
      position: absolute;
      top: 10px;
      display: inline-block;
      background-color: #ccc !important;
      border-radius: 50% !important;
      width: 16px !important;
      height: 16px !important;
    } // 不可编辑， 要删除×
    .photo-read-only {
      width: 0;
      & .am-image-picker-item-remove {
        width: 0 !important;
      }
    }
    &:nth-child(1) {
      width: 17% !important;
      .am-steps-tail {
        transform: translateX(28px);
      }
    }
    &:nth-last-child(1) {
      width: 25% !important;
      .am-steps-tail {
        display: inline-block !important;
        width: 50% !important;
        transform: translateX(-48px);
      }
    }
    &.am-steps-status-finish,
    &.am-steps-status-process {
      .am-steps-head-inner {
        .dot-icon {
          background-color: @blue !important;
        }
        &.am-steps-status-wait {
          .am-steps-title {
            color: #999 !important;
          }
        }
      }
    }
  }
} //覆盖
.am-wingblank {
  margin-top: 10px;
  margin-bottom: 15px;
} //覆盖modal
.am-modal {
  // opacity: 0.9 !important;
  .am-modal-button {
    color: #007aff;
  }
} //覆盖

//覆盖input 行高
.am-input-item {
  height: auto !important;
}

//覆盖picker图片 列表
.am-image-picker-list {
  padding-top: 0 !important;
  margin-bottom: 20px !important;
  .am-flexbox {
    padding: 15px 0 !important;
    height: 220px !important;
  }
  .am-wingblank {
    margin-left: 0;
  }
  .am-wingblank.am-wingblank-md {
    margin-left: 0;
  }
  .am-image-picker-item {
    width: 200px !important;
    height: 200px !important;
  }
  .am-image-picker-item .am-image-picker-item-remove {
    top: -0.12rem !important;
    right: -0.16rem !important;
    background-image: url("https://gw.alicdn.com/tfs/TB1.s66SXXXXXbQaFXXXXXXXXXX-48-48.png") !important;
    background-repeat: no-repeat;
  }
}
.photo-read-only
  .am-image-picker-list
  .am-image-picker-item
  .am-image-picker-item-remove {
  width: 0 !important;
}

.pt15 {
  .am-list-content {
    padding: 15px 0 0 24px !important;
  }
}

.two-line {
  .am-list-line {
    min-height: 150px !important;
  }
}

.label-left {
  vertical-align: middle !important;
}

.long-label {
  .am-list-content {
    flex-basis: 55% !important;
  }
}

.photo-read-only {
  .am-list-content {
    margin-left: 0.8em;
    flex-basis: 100% !important;

    .am-image-picker-list,
    .am-wingblank {
      padding: 0 !important;
      margin: 0 !important;
    }
  }
}

.no-close {
  .am-image-picker-item-remove {
    display: none;
  }
}

.rlw-hint {
  font-size: 26px;
  color: #a3a4a6;
  text-align: left;
  padding: 0rem 0.35rem 0.24rem;
  height: 44px;
  background: #f6f6f6;
}

.scroll-body {
  position: absolute;
  padding-bottom: 132px;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: auto;
  &.no-padding-bottom {
    padding-bottom: 0;
  }
}
.scroll-btn {
  background: #fff;
  bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  padding-top: 16px;
  z-index: 10;
  position: absolute;
  height: 136px;
  box-sizing: border-box;
  padding: 24px 24px 0;
}

#dingapp .am-image-picker-list .am-flexbox {
  overflow: hidden;
  .am-flexbox-item {
    margin-right: 200px;
  }
}

.am-modal.am-modal-transparent .am-modal-content {
  border-radius: 12px !important;
}

.am-modal-header {
  .am-modal-title {
    line-height: 50px;
  }
}

.rlw-hint-empty {
  //height: 28px;
}
// 列表没有数据样式 by Allan
.no-data {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  h5 {
    font-size: 0.3rem;
    margin: 0;
    font-weight: 400;
  }
  p {
    font-size: 0.23rem;
    color: #7d8082;
    margin: 0;
  }
}

// common List
.list-wrap {
  .am-list-thumb {
    img {
      width: 0.8rem;
      height: 0.8rem;
      overflow: hidden;
      border-radius: 50%;
    }
  }
  .am-list-item {
    padding-left: 0.24rem;
  }
  h4 {
    margin: 0;
  }
  p {
    margin: 0;
    font-size: 0.28rem;
    color: @brand-primary;
  }
  .am-list-item .am-list-thumb:first-child {
    margin-right: 24px;
  }
  .am-list-item .am-list-line .am-list-content {
    flex: none;
  }
  .no-submit {
    color: #f25643;
  }
}

// common avatar(header image)
.growth-avatar-dd-avatar {
  width: 96px;
  font-size: 0.24rem;
  height: 96px;
  line-height: 96px;
  font-weight: bold;
  border-radius: 50%;
}
.am-list-item .am-list-line-multiple {
  padding: 0.28rem 0.24rem 0.28rem 0 !important;
}

.am-list-item .am-list-line .am-list-arrow {
  width: 0.26rem !important;
  height: 0.26rem !important;
}

@font-face {
  font-family: DINCondensed-Bold;
  src: url("../../assets/DINCondensedBold.ttf");
}

/*修复列表下iphone手势无效的问题*/
.phone-border-fix {
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0;
  right: 97%;
  z-index: 100;
}

.hr-readonly {
  height: 92px;
  display: flex;
  padding-left: 37px;
  align-items: center;
}
.profile-item-label {
  width: 240px;
}
.profile-item-tips {
  position: absolute;
  right: 20px;
  font-size: 24px;
  color: #999;
}

.dir-warning-icon {
  width: 25px;
  display: inline-block;
}
